var express  = require('express');
var router = express.Router();

router.get('/', (req, res) => {
    res.render('index.ejs')
})

router.get('/blog', (req, res) => {
    res.render('blog.ejs')
})

let contactArr = []

router.post('/message', (req, res) => {
    contactArr.push(req.body);
    console.log(contactArr)
    res.send(200)
})


module.exports = router